function resume(pts)

  warning('off', 'all');
  n = 1000;
  step = 1.0/n;

  f = fopen('res_incr.txt', 'w');
  fclose(f);

  parfor_progress(length(pts)); 
  parfor pi=1:length(pts)
    i = pts(pi,1);
    j = pts(pi,2);
    res = v_acc(step*i, step*j);
    f = fopen('res_incr.txt', 'a');
    fprintf(f, '%d %d %f\n', i, j, res);
    fclose(f);
    %c
    %disp('%f\%', c/n/n*100);
    parfor_progress
  end

  warning('on', 'all');
  parfor_progress(0);
end
